<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>webchannel 测试</title>
</head>
<body>
    <p>webchannel 测试</p>
    <script type="text/javascript" src="./qwebchannel.js"></script>
    <script type="text/javascript" src="./msgutils.js"></script>
    <p>提示: onBtnSendMsg --> sendMessage(msg) --> channel.objects.context.onMsg(msg) </p>
    <p>提示: onMsg(msg) --> emit recvMsg(msg) -> ui->statusBar->showMessage(msg) </p>
    <input id="待发送消息" type="text" name="msgText" />
    <input type="button" value="页面发送消息到浏览器(QWebEngineView)" onclick="onBtnSendMsg()" />
</body>
</html>
